class GYSData {
  int code;
  GYSInfo data;
  String msg;
  String requestId;

  GYSData({this.code, this.data, this.msg, this.requestId});

  GYSData.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    data = json['data'] != null ? new GYSInfo.fromJson(json['data']) : null;
    msg = json['msg'];
    requestId = json['requestId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['msg'] = this.msg;
    data['requestId'] = this.requestId;
    return data;
  }
}

class GYSInfo {
  String supplierName;
  String photoUrl;
  int supplierId;

  GYSInfo({this.supplierName, this.photoUrl, this.supplierId});

  GYSInfo.fromJson(Map<String, dynamic> json) {
    supplierName = json['supplierName'];
    photoUrl = json['photoUrl'];
    supplierId = json['supplierId'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['supplierName'] = this.supplierName;
    data['photoUrl'] = this.photoUrl;
    data['supplierId'] = this.supplierId;
    return data;
  }
}
